/**
 * Created with JetBrains WebStorm.
 * User: Eric
 * Date: 19/03/13
 * Time: 19:24
 * To change this template use File | Settings | File Templates.
 */

var Drawer = function(engine){

    this.engine = engine;
    this.densityMap = new sheetengine.DensityMap(5);

}
Drawer.prototype = {


    drawObject : function (object){
        object.load(this.engine, this.densityMap);
    },

    drawMap : function (map){
        for (var i = 0; i < map.length; i++){
            this.drawObject(map[i]);
        }
        self.world.drawer.engine.calc.calculateChangedSheets();
        this.engine.drawing.drawScene(true);
    }
}